from apps.material.models import raw_material
from django.db.models import Max

def search_Data():

    # data = json.loads(request.body.decode('utf-8'))
    data={'materialId': 100001}
    print(data)
    search_materialId = data['materialId']
    obj_material = raw_material.objects
    # 获取过滤结果
    obj_res = obj_material.filter(materialId__icontains = search_materialId)

    obj_res_objects = obj_res.values()
    print(obj_res_objects)



search_Data()